package com.xydtech.ecard.ecard.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片用户申请体验审批记录对象 ecard_experience_approve
 *
 * @author yuzhiguo
 * @date 2024-10-23 上午10:19
 */
public class EcardApiExperienceApprove extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 申请信息关联id */
    @Excel(name = "申请信息关联id")
    private Long expId;

    /** 审批人注册id */
    @Excel(name = "审批人注册id")
    private Long creatorId;

    /** 审批结果，1：待审批，2：审批成功，3：拒件 */
    @Excel(name = "审批结果")
    private String state;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 申请人姓名 */
    @Excel(name = "体验人姓名")
    private String expName;

    /** 体验人手机号 */
    @Excel(name = "体验人手机号")
    private String expPhone;

    /** 审批人 */
    @Excel(name = "审批人")
    private String userName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setExpId(Long expId)
    {
        this.expId = expId;
    }

    public Long getExpId()
    {
        return expId;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }

    public String getExpName() {
        return expName;
    }

    public void setExpName(String expName) {
        this.expName = expName;
    }

    public String getExpPhone() {
        return expPhone;
    }

    public void setExpPhone(String expPhone) {
        this.expPhone = expPhone;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("expId", getExpId())
                .append("creatorId", getCreatorId())
                .append("state", getState())
                .append("creationTime", getCreationTime())
                .append("remark", getRemark())
                .append("expName", getExpName())
                .append("expPhone", getExpPhone())
                .append("userName", getUserName())
                .toString();
    }
}
